<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>销售品选择页面</title>
	</head>
	<style type="text/css">
		.p_c_OfferSpec {
			background-color:#EDF2F5;
			font-family:'新宋体';
			font-size:12px;
			height:100%;
			overflow-y:hidden;
			margin:0px;
			padding:0px;
		}
	</style>
 	<%
 		String partObjId = request.getParameter("partObjId");
 		String actionType = request.getParameter("actionType");
	%>



	<body>
	<div id="ttOffer" class="easyui-tabs">
		<div id="pmb"  title="销售品选择面板" class="p_c_OfferSpec">
			<div class="condSelectPan">
				<table style="font-size:12px;font-weight:normal;width:100%;">
					<tr style="line-height:30px;">
						<td style="text-align:right;width:140px;">销售品名称:</td>
						<td><input type="text" name="offerSpecName" id="pack_offerSpecName"  style="width:300px;"/></td>
						<td>
							<input type="button" value="查询" onclick="javascript:queryOfferSpecByName();"/></td>
					</tr>
				</table>
			</div>
			<div class="condQuerResult">
				<div id="OfferSpecInfo"></div>
			</div>

			<div class="btn_query">
				<input type="button" value="确定" onclick="saveOfferSpec()"/>
				<input type="button" value="取消" onclick="cancelOfferSpec()">
			</div>
		</div>


		<div id="pmblable" title="促销类标签面板" class="p_c_OfferSpec">
			<div class="condSelectPan">
					<table style="font-size:12px;font-weight:normal;width:100%;">
						<tr style="line-height:30px;">
							<td style="text-align:right;width:140px;">标签名称:</td>
							<td><input type="text" name="labelName" id="labelName" style="width:300px;"/></td>
							<td><input type="button" value="查询" onclick="javascript:queryConditionsLabel();"/></td>
						</tr>
					</table>
			</div>
			<div class="condQuerResult">
				<div id="cqrGridLabel"></div>
			</div>
				<div class="btn_query">
					<input type="button" value="确定" onclick="saveConditionLabel()"/>
					<input type="button" value="取消" onclick="cancleLabel()">
				</div>
			</div>
		</div>
	</div>


	</body>

	<script type="text/javascript">

	$(function(){
			$('#tt').tabs({

			});
		var actiontype = <%=actionType%>;
		if( actiontype==ACTION.TYPE.J || <%=partObjId%> ==  OBJECT.PARTY){
			$('#tt').tabs('close','促销类标签面板');
		}


		initOfferSpec(<%=partObjId%>,<%=actionType%>);
		initSelectLabel();
	});


	</script>

</html>
